﻿using Newtonsoft.Json;
using WMS.FC.Domain.ValueObject.System;

namespace WMS.FC.Domain.ValueObject.Menu
{
    /// <summary>
    /// 菜单VO
    /// </summary>
    public class MenuVO : ValueObjectBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [JsonProperty("id")]
        public string Id { get; set; } = string.Empty;

        /// <summary>
        /// 名称
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 图标
        /// </summary>
        [JsonProperty("icon")]
        public string Icon { get; set; } = string.Empty;

        /// <summary>
        /// 菜单地址
        /// </summary>
        [JsonProperty("url")]
        public string Url { get; set; } = string.Empty;

        /// <summary>
        /// 子菜单
        /// </summary>
        [JsonProperty("children")]
        public List<MenuVO> Children { get; set; } = new List<MenuVO>();
    }
}
